Skip to content

📖 Improve formatting on the docs website #1446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Nov 12, 2024

Description

Fixes a number of formatting/rendering issues. Mostly around lists, admonitions (notes, warnings, etc) and collapsible text.

Tip

Recommend reviewing the changes with git diff --ignore-all-space (-w) option. GitHub UI also has this option.
Screenshot 2024-11-12 at 15 59 15

Tip

We also have docs deployment preview. See the comment from netlify bot below.

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 12, 2024
Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit c916dc7
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/6734a3daf64a1b000848b566
😎 Deploy Preview https://deploy-preview-1446--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines -54 to +56
** Disable CRD Upgrade Safety Check:**
**Command Example:**

**Patch the ClusterExtension Resource:**
If you prefer using the command line, you can use `kubectl` to modify the upgrade CRD safety check configuration.
Copy link
Member Author

@m1kola m1kola Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only text related change because it was very odd to read this.

Everything else is just formatting.


Screenshot 2024-11-12 at 16 03 13

VS

Screenshot 2024-11-12 at 16 03 17

@m1kola m1kola marked this pull request as ready for review November 12, 2024 15:04
@m1kola m1kola requested a review from a team as a code owner November 12, 2024 15:04
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 12, 2024
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.91%. Comparing base (046c3df) to head (9f7db18).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1446   +/-   ##
=======================================
  Coverage   74.91%   74.91%           
=======================================
  Files          42       42           
  Lines        3241     3241           
=======================================
  Hits         2428     2428           
  Misses        642      642           
  Partials      171      171           
Flag Coverage Δ
e2e 51.95% <ø> (-0.10%) ⬇️
unit 57.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines -66 to +69
> [!NOTE]
> Currently, OLM 1.0 does not support automatic upgrades to the next major version. You must manually verify and perform major version upgrades. For more information about major version upgrades, see [Manually verified upgrades and downgrades](#manually-verified-upgrades-and-downgrades).
!!! note
Currently, OLM 1.0 does not support automatic upgrades to the next major version. You must manually verify and perform major version upgrades. For more information about major version upgrades, see [Manually verified upgrades and downgrades](#manually-verified-upgrades-and-downgrades).
Copy link
Member Author

@m1kola m1kola Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!!! note This renders well in our mkdocs website, but not on GitHub. [!NOTE] renders well on GitHub, but not in mkdocs.

Same applies to other admonitions.

Ref: https://squidfunk.github.io/mkdocs-material/reference/admonitions/#classic-admonitions-docsstylesheetsextracss

We are changing these admonitions in docs dir because these are docs which will be rendered on the website. Leaving everything outside of docs dir as is - these will likely be viewed via GitHub UI.

kind create cluster operator-controller
```
```sh
kind create cluster operator-controller
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was rendering fine in GH UI. However this doc is also used in the website. This formatting works fine in both GH and on the website.

@m1kola m1kola force-pushed the fix_docs_rendering branch from 77c1ae7 to 859f2ba Compare November 12, 2024 15:57
@m1kola m1kola requested a review from trgeiger November 12, 2024 15:58
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming that you finished (since I cannot see in the title WIP)

Hi @m1kola

The emoji here is 📖 not 🌱

🌱 is only for things that does not bring impacted to the end users at all (i.e changes in the e2e tests)

So could you please fix the emoji?

Otherwise,

I gave a look on this one with the preview and all shows fine 🥇
Great work !!! Well done

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 12, 2024
@m1kola m1kola changed the title 🌱 Improve formatting on the docs website 📖 Improve formatting on the docs website Nov 12, 2024
@m1kola
Copy link
Member Author

m1kola commented Nov 12, 2024

Forgot we have a separate emoji for docs. Updated.

Copy link
Contributor

@trgeiger trgeiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting a few small changes

@m1kola m1kola force-pushed the fix_docs_rendering branch from 859f2ba to 9f7db18 Compare November 12, 2024 16:27
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 12, 2024
@m1kola m1kola requested a review from trgeiger November 12, 2024 16:27
@m1kola
Copy link
Member Author

m1kola commented Nov 12, 2024

@trgeiger lovely stuff! Please take a look at the latest push: it addresses your feedback + I noticed a broken list under "Putting it all together" in docs/howto/derive-service-account.md

Copy link

openshift-ci bot commented Nov 12, 2024

@trgeiger: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@trgeiger
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 12, 2024
@michaelryanpeter
Copy link
Contributor

/lgtm

Copy link

openshift-ci bot commented Nov 12, 2024

@michaelryanpeter: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@camilamacedo86
Copy link
Contributor

/lgtm

@m1kola m1kola force-pushed the fix_docs_rendering branch from 9f7db18 to 118b870 Compare November 13, 2024 08:45
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 13, 2024
@m1kola
Copy link
Member Author

m1kola commented Nov 13, 2024

Had to rebase due to #1228

@m1kola
Copy link
Member Author

m1kola commented Nov 13, 2024

Blocked by #1451. Will require another rebase once it merges.

Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 13, 2024
Fixes a number of formatting/rendering issues. Mostly around
lists, admonitions (notes, warnings, etc) and collapsible text.

Signed-off-by: Mikalai Radchuk <[email protected]>
@m1kola m1kola force-pushed the fix_docs_rendering branch from 118b870 to c916dc7 Compare November 13, 2024 13:04
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 13, 2024
Copy link

openshift-ci bot commented Nov 13, 2024

New changes are detected. LGTM label has been removed.

@m1kola
Copy link
Member Author

m1kola commented Nov 13, 2024

Rebased on top of #1451 so it can pass upgrade-e2e.

@m1kola m1kola enabled auto-merge November 13, 2024 13:13
Copy link
Contributor

@perdasilva perdasilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! Thank you!!!

@m1kola m1kola added this pull request to the merge queue Nov 13, 2024
Merged via the queue into operator-framework:main with commit ac75d65 Nov 13, 2024
16 checks passed
@m1kola m1kola deleted the fix_docs_rendering branch November 13, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants